﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CONEK911Manager.DAO;
using CONEK911Manager.DTO;

namespace CONEK911Manager.BUS
{
    class ProductBUS
    {
        readonly ProductDAO _productDao = new ProductDAO();
        public bool AddProduct(ProductDTO product)
        {
            return _productDao.AddProduct(product);
        }
        public List<ProductDTO> GetAllProduct()
        {
            return _productDao.GetAllProduct();
        }
        public bool RemoveProduct(string productCode)
        {
            return _productDao.RemoveProduct(productCode);
        }
        public bool UpdateProduct(ProductDTO product)
        {
            return _productDao.UpdateProduct(product);
        }
    }
}
